<div class="modal-header">
    <h4 class="modal-title">设置景区</h4>
</div>
<div class="modal-body">

    <form name="form" class="form-horizontal ng-pristine ng-valid-required">
      <div class="form-group">
        <label class="col-lg-3 control-label">景区名称:</label>
        <div class="col-lg-5">
          <ui-select ng-model="view.place" theme="bootstrap">
            <ui-select-match placeholder="选择景区...">{{$select.selected.name}}</ui-select-match>
            <ui-select-choices repeat="place in place_list | filter: {'name': $select.search}">
              <span ng-bind-html="place.name | highlight: $select.search"></span>
            </ui-select-choices>
          </ui-select>
        </div>
        <label class="col-lg-3">
          <button class="btn btn-success" type="button" ng-click="add()">添加</button>
        </label>
      </div>
      <div class="form-group">
        <label class="col-lg-3 control-label">已选景区:</label>
        <div class="col-lg-8">
          <div style="padding-right: 20px; padding-bottom: 5px; float: left;"  ng-repeat="info in sel_list">
            <button class="btn btn-sm btn-info">{{info.name}}
              <i class="glyphicon glyphicon-remove" ng-click="remove($index)"></i>
            </button>
          </div>
        </div>
      </div>


    </form>


</div>
<div class="modal-footer">
    <button class="btn btn-success" type="button" ng-click="ok()">确定</button>
    <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>
